#include <workflow/WFFacilities.h>
#include <workflow/WFTaskFactory.h>

#include <signal.h>
#include <iostream>

using std::cout;
using std::cerr;

static WFFacilities::WaitGroup waitGroup(1);
void handler(int signum)
{
    cout << "done\n";
    waitGroup.done();

    return;
}

void redisCallBack(WFNetworkTask<protocol::RedisRequest, protocol::RedisResponse>* task)
{

}

int main()
{
    signal(SIGINT, handler);
    WFRedisTask *redisTask = WFTaskFactory::create_redis_task(
        "redis://127.0.0.1:6379",
        10,
        redisCallBack
        );

    return 0;
}

